package cn.shujuhai.common.service;

import cn.shujuhai.common.domain.SysPermission;
import cn.shujuhai.common.pluging.data.ResultVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author NiuYahu
 * @description 针对表【sys_permission(权限表)】的数据库操作Service
 * @createDate 2024-10-25 10:01:15
 */
public interface SysPermissionService extends IService<SysPermission> {


    ResultVo<?> savePermission(SysPermission sysPermission);

    ResultVo<?> getPermissionList();

    ResultVo<?> removePermissionById(Long permissionId);

    ResultVo<?> getRoleIdsByPermissionId(Long permissionId);

    ResultVo<SysPermission> enablePermission(Long permissionId);

    ResultVo<?> getPermissionByPermissionId(Long permissionId);

    ResultVo<?> updatePermission(SysPermission sysPermission);

    ResultVo<?> getPermissionsWithParentsByNameLike(String permissionName);

    Long getPermissionIdsByMenuId(Long menuId);
}
